package com.ruoyi.common.enums;

/**
 * ruoyi
 * Description: 异常枚举
 *
 * @author lucas <link>mailto:lucas.shao@foxmail.com</link>
 * @since 2019-06-04
 */
public enum ExceptionEnum {
	/**
	 * 异常罗列
	 */
	TODO_NAME_IS_NULL(500, "demo-todo", "todo名称不能为空!"),
	;

	ExceptionEnum(int code, String module, String message) {
		this.code = code;
		this.module = module;
		this.message = message;
	}

	/**
	 * 全局状态代码
	 */
	private int code;
	/**
	 * 异常所属模块
	 */
	private String module;
	/**
	 * 异常消息
	 */
	private String message;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
